from dto import *

def get_rule_spec_types():
    #return ['Provider', 'AmountItem', 'AmountMoney', 'Group', 'PayType', 'Codsussan', 'PTC']
    return ['Provider', 'AmountItem', 'AmountMoney', 'Group', 'PayType', 'Codsussan', 'YearMonth']

def create(id, f, t, elem, amount, year, month, type):
    if type == "Provider":
        return ProviderSpec(id, f, t, elem, amount, year, month, type)
    elif type == "AmountItem":
        return AmountItemSpec(id, f, t, elem, amount, year, month, type)
    elif type == "AmountMoney":
        return AmountMoneySpec(id, f, t, elem, amount, year, month, type)
    elif type == "Group":
        return GroupSpec(id, f, t, elem, amount, year, month, type)
    elif type == "PayType":
        return PayTypeSpec(id, f, t, elem, amount, year, month, type)
    elif type == "Codsussan":
        return CodsussanSpec(id, f, t, elem, amount, year, month, type)
    elif type == "YearMonth":
        return YearMonthSpec(id, f, t, elem, amount, year, month, type)
    #elif type == "PTC":
    #    return PTCSpec(id, f, t, elem, type)